<template>
  <div class="navbar">
    <van-nav-bar title="充值帮助中心" left-text="提交记录" @click-left="onClickLeft">
      <!-- <div slot="left"><img src="../assets/close.png" ></div> -->
    </van-nav-bar>
  </div>
</template>

<script>
import { NavBar } from 'vant'
export default {
  components: {
    [NavBar.name]: NavBar
  },
  data(){
    return {
      navbarQuery: {},
      // message: ''
    }
  },
  created() {
    console.log(this.message)
  },
  methods: {
    // onClickLeft() {
    //   history.back()
    // },
    onClickLeft() {
      const QuerySerch = location.search
      window.location.href = `/record/index.html${QuerySerch}`
      console.log(`/record/index.html${QuerySerch}`)
      // this.message = `/record${QuerySerch}`
    }
  }
}
</script>

<style scoped lang="less">
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, #c46a1a, #ebaf2d);
    color: white;
    font-size: 20px;
    font-weight: 600;
    z-index: 1999;
    .van-nav-bar {
      background: none;
      .van-nav-bar__left{
        padding-left: 1%;
        // line-height: 35px;
        // img{
        //   width: 20px;
        // }
      }
      .van-nav-bar__title,.van-nav-bar__text{
        color: #fff;
      }
    }
  }
</style>
